package com.ehome.poct.core.api.vo.order;

import com.ehome.poct.core.api.constant.enums.ScanTypeEnums;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * @auther: kuiba.peng
 * @date: 2022/10/28 11:16
 * @description:
 */
@Data
@ApiModel("唤起支付")
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
public class UnificationPayVO {

    @ApiModelProperty("支付参数")
    private PayInfoDTO payInfo;

    @ApiModelProperty("扫码类型")
    private ScanTypeEnums scanType;


    /**
     * 渠道返回支付信息
     */
    @Data
    public static class PayInfoDTO {
        @ApiModelProperty(value = "内部订单号", required = true)
        private String orderNo;
        @ApiModelProperty(value = "外部订单号", required = true)
        private String outOrderNo;
        @ApiModelProperty(value = "支付渠道类型(微信渠道、银联渠道等)", required = true)
        private Integer payChannel;
        @ApiModelProperty(value = "支付二维码")
        private String qrCode;
    }
}
